//-----------------------------------------------------------------------
// <copyright file="a_DomPrefSService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_DomPrefSService
    {
        #region a_DomPrefS

        public static void Createa_DomPrefS(a_DomPrefS a_DomPrefS)
        {            
            try
            {
                a_DomPrefSDAO a_DomPrefSDAO = new a_DomPrefSDAO();
                a_DomPrefSDAO.Createa_DomPrefS(a_DomPrefS);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_DomPrefS(a_DomPrefS a_DomPrefS)
        {            
            try
            {
                a_DomPrefSDAO a_DomPrefSDAO = new a_DomPrefSDAO();
                a_DomPrefSDAO.Updatea_DomPrefS(a_DomPrefS);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_DomPrefS(int prefID)
        {            
            try
            {
                a_DomPrefSDAO a_DomPrefSDAO = new a_DomPrefSDAO();
                a_DomPrefSDAO.Deletea_DomPrefS(prefID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_DomPrefS Geta_DomPrefS(int prefID)
        {            
            try
            {
                a_DomPrefSDAO a_DomPrefSDAO = new a_DomPrefSDAO();
                return a_DomPrefSDAO.Geta_DomPrefS(prefID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_DomPrefSCollection Geta_DomPrefSList(a_DomPrefSColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_DomPrefSDAO a_DomPrefSDAO = new a_DomPrefSDAO();
                return a_DomPrefSDAO.Geta_DomPrefSList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_DomPrefSCollection Geta_DomPrefSList(a_DomPrefSColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_DomPrefSDAO a_DomPrefSDAO = new a_DomPrefSDAO();
                return a_DomPrefSDAO.Geta_DomPrefSList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}